package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 搜索历史对象 super_search_history
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class SuperSearchHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID,自增 */
    private Long id;

    /** 用户ID,未登录时为空 */
    @Excel(name = "用户ID,未登录时为空")
    private Long userId;

    /** 搜索关键词 */
    @Excel(name = "搜索关键词")
    private String keyword;

    /** 搜索时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "搜索时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date searchedAt;

    /** 删除标志(0存在) */
    private Integer del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setKeyword(String keyword) 
    {
        this.keyword = keyword;
    }

    public String getKeyword() 
    {
        return keyword;
    }

    public void setSearchedAt(Date searchedAt) 
    {
        this.searchedAt = searchedAt;
    }

    public Date getSearchedAt() 
    {
        return searchedAt;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("keyword", getKeyword())
            .append("searchedAt", getSearchedAt())
            .append("del", getDel())
            .toString();
    }
}
